package com.ddwl.gate.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @Author hemiaojun
 * @Date 2020/9/29 23:41
 */
@FeignClient(url = "https://api.test.zjddwl.net",name="testEnv",path = "/gate/bohuan/callBack",configuration = GateFeignConfig.class)
public interface ForwardClient {

    /**
     *转发到测试环境
     * @param map
     * @return
     */
    @PostMapping(value = "/receiveForward")
    String forwardToTestEnv(@RequestParam Map<String, String> map);

}
